package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.*;

/**
 * AI录音记录每一段（多条组成）对象 ai_recording_duan
 *
 * @author ruoyi
 * @date 2025-03-06
 */
@Data
public class AiRecordingDuan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 主表id */
    @Excel(name = "主表id")
    private Long mainId;

    /** 客户id */
    @Excel(name = "客户id")
    private String customerName;

    /** 耗时，毫秒 */
    @Excel(name = "耗时，毫秒")
    private Long take;

    /** 文字记录 */
    @Excel(name = "文字记录")
    private String transcript;

    /** duan */
    @Excel(name = "duan")
    private String duan;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 初始化为0，进行中为1，完成为2 */
    @Excel(name = "初始化为0，进行中为1，完成为2")
    private String status;

    /** 订单id。讯飞 */
    @Excel(name = "订单id。讯飞")
    private String orderId;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 现在的批次id */
    @Excel(name = "现在的批次id")
    private String batchId;

    @TableField(exist = false)
    private List<AiRecordingChild> aiRecordingChildList=new ArrayList<>();
    @TableField(exist = false)
    private Map<String, List<AiDeepseekAnswer>> answerMap=new HashMap<>();

    private List<AiDeepseekSpokesman> aiDeepseekSpokesmanList=new ArrayList<AiDeepseekSpokesman>();

    private List<AiDeepseekAnswer> aiDeepseekAnswerList=new ArrayList<>();
    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 创建人部门id */
    @Excel(name = "创建人部门id")
    private Long deptId;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date time;


    /** 有效时长 分钟 */
    @Excel(name = "有效时长 分钟")
    private Double validTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    public Date groupTime;



    @TableField(exist = false)
    private Double validTimeCount;
    @TableField(exist = false)
    private String  userName;


    @TableField(exist = false)
    private String  customerNameStr;

}
